package com.ibeeking.found.upms.s.rest.service;

import com.ibeeking.found.upms.service.common.bo.ShopRoleBO;
import com.ibeeking.found.upms.service.common.query.ShopRolePageQuery;
import com.ibeeking.found.upms.service.common.vo.ShopRolePageVO;
import com.ibeeking.found.upms.service.common.vo.ShopRoleVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * @ClassName IShopRoleService
 * @Description
 * @Author ibeeking
 * @Date 2021-02-22 9:31
 **/
public interface IShopRoleService {
    /**
     * 查询超级管理员id
     *
     * @return
     */
    Long selectAdministratorId();

    /**
     * 角色分页查询
     *
     * @param shopId
     * @param query
     * @return
     */
    Page<ShopRolePageVO> pageList(Long shopId, ShopRolePageQuery query);

    /**
     * 角色查看
     *
     * @param id
     * @return
     */
    ShopRoleVO view(Long id);

    ShopRoleBO queryById(Long id);

    List<ShopRoleVO> allList();

    List<ShopRoleBO> queryByIds(List<Long> ids);
}
